<script setup lang="ts">
// axios的安装 通过指令 pnpm i axios 下载
import axios from 'axios';
import { onMounted, ref } from 'vue';

const meesage = ref(100)

const getData = async()=>{
  const res = await axios.get('http://hmajax.itheima.net/api/news')
  console.log(res)
}

// getData()
console.log(Date.now())
onMounted(()=>{
  getData()
  console.log(Date.now())
})

</script>


<template>

</template>


